package com.yqb.study.modular.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.yqb.study.common.from.LoginFrom;
import com.yqb.study.common.session.IRedisSession;
import com.yqb.study.modular.persistence.model.User;

public interface IUserService {
	/**
	 * 用户登录,检查参数,缓存登录信息
	 */
	String userLogin(LoginFrom loginVo, HttpServletRequest request, HttpServletResponse response, IRedisSession sessionRedis);
	
	/**
	 * 用户注销
	 */
	void userLogout(HttpServletRequest request, HttpServletResponse response, IRedisSession sessionRedis);
	
	/**
	 * 获取所有用户信息
	 */
	List<User> getAllUserInfo();
}
